import request from '@/utils/request'
export function getInfoByToken(token) {
  return request({
    method: 'get',
    url: '/sys-sso/oauth2/user_info',
    headers: {
      'Authorization': 'bearer ' + token
    },
  })
}
export function getPortals(data) {
  return request({
    url: '/sys-user/user/portals',
    method: 'GET',
    params:data
  })
}